/*
   This file is part of "UDP file transfer".
   
   "UDP file transfer" is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   "UDP file transfer" is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with "UDP file transfer".  If not, see <http://www.gnu.org/licenses/>.
*/

/*
USAGE:
  unsigned char foo[4];
  char *md_value;
  strcpy(foo,"hola");

  md_value=calculate_md5(foo,sizeof(foo));

  printf("MD5 is %s",md_value);

*/
#include <stdlib.h>
#include <openssl/evp.h>
#define MD5_SIZE 32

char *calculate_md5(void *buf, ssize_t buflen);

